import { defineConfig } from 'umi';

export default defineConfig({
  nodeModulesTransform: {
    type: 'none',
  },
  layout:{
    title:'YZS',
  },
  routes: [
    {
      path: '/',
      component: '@/layouts/index',
      routes: [
        {
          exact: true,
          path: '/',
          redirect: '/welcome',
        },
        {
          exact: true,
          path: '/welcome',
          component: './Welcome',
          name: '欢迎',
          icon: 'https://gw.alipayobjects.com/zos/antfincdn/FLrTNDvlna/antv.png',
        },
        {
          exact: true,
          path: '/admin',
          component: './Admin',
          name: 'Admin',
          icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
        },
      ]
      }
  ],
  fastRefresh: {},
});
